<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

function show_404($page = '') {
    if ($page=='')
        $page = $_SERVER['REQUEST_URI'];

    $heading = "404 Page Not Found";
    $message = "The page you requested was not found.";

    log_message('error', '404 Page Not Found --> '.$page);
    echo $this->show_error($heading, $message, 'error_404');
    exit;
}